﻿using System.Collections.Generic;
namespace LunchLearn.WebApi.Infrastructure.Notifications
{
    public class Notification
    {
        public string Message { get; set; }

        public Notification(NotificationType type, object data, string message, params object[] param)
        {
            NotificationType = type;
            Data = data;
            Message = string.Format(message, param);
        }

        public object Data { get; set; }

        public string DataType
        {
            get { return Data.GetType().Name; }
        }

        public string DynamicMethod
        {
            get
            {
                return NotificationTypeMethod.GetNotificationTypeMethod(NotificationType);
            }
        }

        public NotificationType NotificationType { get; set; }
    }
}